import websocket

def on_message(ws, message):
    print(message)

def on_error(ws, error):
    print(error)

def on_close(ws):
    print("### closed ###")

def on_open(ws):
    print("Opening connection")

if __name__ == '__main__':
    url = ''
    websocket.WebSocketApp(url, header={}, cookie='', on_message=on_message, on_error=on_error, on_close=on_close)
